package com.wframe.project.jnd.services.impl;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.frame.database.JdataBean;
import com.wframe.project.former.dataservices.sysman.dao.SysproDao;
import com.wframe.project.jnd.dao.CommonDao;
import com.wframe.project.jnd.services.CommonService;
import org.springframework.transaction.annotation.Transactional;

@Service
public class CommonSeviceImpl implements CommonService{

	@Autowired
	CommonDao commonDao;
	
	@Override
	public void saveSmsCode(String phone, String code) {
		// TODO Auto-generated method stub
		commonDao.saveSmsCode(phone, code);
	}

	public void updateSmsCode(String phone,boolean ischeck){
		commonDao.updateSmsCode(phone, ischeck);
	}
	
	public JdataBean getSmsCode(String phone){
		return commonDao.getSmsCode(phone);
	}
	public JdataBean getSysPro(){
		return commonDao.getSyspro();
	}
	public List<JdataBean> getInformaTion(String code){
		return commonDao.getInformaTion(code);
	}
}
